package com.hackintosh.observer.school;

import java.util.EventObject;

/**
 * @description：铃声事件类：用于封装事件源及一些与事件相关的参数
 * @author：twislyn
 * @date：Created in 2021/05/27
 * @modified By：
 * @version: 1.0
 */
public class RingEvent extends EventObject {
    private static final long serialVersionUID = 1L;
    // true表示上课铃声，false表示下课铃声
    private Boolean sound;

    public RingEvent(Object source, boolean sound) {
        super(source);
        this.sound = sound;
    }

    public Boolean getSound() {
        return sound;
    }

    public void setSound(Boolean sound) {
        this.sound = sound;
    }
}
